package com.byf.search.service;


import com.byf.search.common.domain.SkuEsModel;
import com.byf.search.vo.SearchParam;
import com.byf.search.vo.SearchResult;

import java.io.IOException;
import java.util.List;

public interface ProductService {

    /**
     * 批量添加es
     * @param skuEsModelList
     * @return
     * @throws IOException
     */
    boolean productStatsUp(List<SkuEsModel> skuEsModelList) throws IOException;


    /**
     * 商品es搜索
     * @param searchParam
     * @return
     */
    SearchResult search(SearchParam searchParam) throws IOException;
}
